<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
/**
 *    打印相关
*/ 
@media print 
{
    .notprint 
    {
        display:none;
    }
    .PageNext
    {
        page-break-after:always;
    }     
}
</style>
<style>
.info{
	width:950px;
	font-size:14px;
	 }
.h50,.h30,.h20,.h10,.h5,.h1{width:100%; overflow:hidden; clear:both}
.h1{ height:1px; }
.h5{ height:5px; }
.h10{ height:10px; }
.h20{ height:20px; }
.h30{ height:30px; line-height:30px}
.h50{ height:50px}	 
.order_sn{
	text-align:center;
    }
.top_info{
	}
.top_info_left{
	float:left;
	width:50%;
}
.top_info_left table {
	width:85%;
	text-align:center;
}
.top_info_right{
	float:left;
	width:49%;
}
.td_right{
	width:25%;
	text-align:right;
    }
td{
	padding-top:8px;
}	
.body_info_div{
/*	border:1px solid red;*/
	float:left;
    width:49.2%;
	border-right:1px solid #000;
}
.body_info_div_2{
/*	border:1px solid red;*/
	float:left;
    width:98.4%;
	border-right:1px solid #000;
}
.info_title{
	font-weight:bold;
	text-align:center;
	border-bottom:1px solid #000;
	padding-bottom:5px;
    font-size:24px;
	}
.info_content{
	margin-left:10px;
}
.bottom_info{
	border-top:1px solid #000;
	}
.bottom_info_left{
	float:left;
	width:40%;
}
.bottom_info_right{
	float:left;
	width:59%;
}
.zt{/*background-image:url("/admin/Tpl/order/black_dot.png");*/background-color:#FFFFFF; height:45px; line-height:50px; margin-left:-3px; text-align:center;font-size:50px;font-weight:bold;}
</style>
</head>
<body>

<div class="info">
    <div class="order_sn">订单号：<?php echo $orderfigure['order_id'].'-'.$order_item_id;?>|货号：<?php echo $order['product_sn'];?>|<font">商品名称：<?php echo $orderfigure['product_name']?></font></div>
    <div class="h10">&nbsp;</div>
    <div class="top_info">
		<?php 
		$measureInfo = AttributeModel::get_user_measure_info($orderfigure['measure_id']); 
		?>
       <div class="top_info_left">
           <div>客户名称:<?php echo $measure['measure_name']?>  |  成衣尺码:<?php foreach(unserialize($measureInfo['measure_data']) as $mskey=>$msval){ ?><strong class="text-bold"><?php echo $msval; } ?></strong></div>
              <table>
                  <tr>
                     <td>纱线号</td><td>成分</td><td>纱支</td><td>针型</td><td>交货重量</td>
                  </tr>
                  <tr>   
                     <td>SPRING AIR</td>
                     <td>100%羊绒</td>
                     <td>2/26</td>
                     <td>12针</td>
                     <td><?php echo $product['weight']?>g</td>
                  </tr>
				<?php 
                    $lining_db = D('lining');
                    $lining_info = $lining_db->where(array('suppliers_name'=>$orderfigure['attr_array'][69]['cn_attr_value_name']))->find();
                ?>                  
                  
              </table>
       </div>
       <div class="top_info_right">
           <div><img src="/statics/barcodegen/code.php?text=<?php echo $Barcode;?>" align="absmiddle"/>&nbsp;交货日期：<?php echo date("Y-m-d",time()+7*24*3600)?></div>
       </div>
    </div>
    
   
    <div class="h1" style=" border-top:1px solid #000;">&nbsp;</div>   
    <div class="body_info">
        <div class="body_info_div">
            <div class="info_title">商品照片</div>
            <div class="info_content">
            <div class="h20">&nbsp;</div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                     <td>
                      <img src="<?php echo 'http://' . $_SERVER['HTTP_HOST'].str_replace(UPLOAD_PATH, UPLOAD_PATH.'app/', dirname($product['small_img'])).'/250x250_'.basename(str_replace('thumb_','',$product['small_img']));?>"  />
                     </td>
                 </tr>

            </table>        
            </div>
        </div>

        <?php foreach($size_data_arr as $key=>$val):?>
        <div class="body_info_div">
            <div class="info_title">
            <?php echo $val['size_type_name'];?>
            <span style=" font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;尺码:<?php echo C('sweater_szie_value')[$val['chima']];?></span>
            </div>
            <div class="info_content">
                 <div class="h5">&nbsp;</div>
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                     <tr>
                         <td></td>
                         <td>标准尺寸</td>
                         <td>调整尺寸</td>
                     </tr>
                     <?php foreach($val['size_name'] as $k=>$v):?>
                         <?php $size=D('size_data')->where("size_name_id =".$v['id']." and size=".$val['chima'])->getField('size_cm');?>
                         <tr>
                             <td><?php echo $v['size_name'];?></td>
                             <td><?php echo $size;?></td>
                             <td><?php if($v['id']==196||$v['id']==200)echo $v['mtmsize']-$size;?></td>
                         </tr>
                     <?php endforeach;?>
                               
                     <?php foreach($val['mtmadd'] as $k=>$v):?>
                     <tr>
                         <td></td>
                         <td><?php echo $v['size_name'] ? $v['size_name'] : '&nbsp;';?></td>
                         <td><?php echo $v['size_val'];?></td>
                     </tr>
                     <?php endforeach;?>
                  </table>
            </div>
         </div>
         <?php endforeach;?>    
    </div>
    <div class="h1">&nbsp;</div>
    <div class="body_info">
        <div class="body_info_div_2">
            <div class="info_title"></div>
            <div class="info_content">
            <div class="h20">&nbsp;</div>
             <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
              
             
            
              <tr>
                <td>撞色颜色</td>
                <td><?php echo isset($orderfigure['attr_array'][172])?$orderfigure['attr_array'][172]['cn_attr_value_name']:'没有';?></td>
                <td>撞色位置</td>
                <td><?php echo isset($orderfigure['attr_array'][171])?$orderfigure['attr_array'][171]['cn_attr_value_name']:'没有';?></td>
               
              </tr>
              <tr>
                <td>主色颜色</td>
                <td><?php echo isset($orderfigure['attr_array'][170])?$orderfigure['attr_array'][170]['cn_attr_value_name']:'没有';?></td>
                <td></td>
                <td></td>
              </tr>
             
            </table>  
            </div>
        </div>
    </div>
    <div class="h10">&nbsp;</div> 
    <div class="bottom_info">
        <div style="font-size: 16px;font-weight: bold;">特殊要求:</div>
        <p  style="font-size: 16px;"><?php if($orderfigure['special_request']!="" ){echo $orderfigure['special_request'];}else{ echo $orderfigure['special_request_1']; }?></p>
    </div>
<table width="100%" border="0">    
    <tr>
        <td align="center"><div class="notprint"><?php if(!$noshow):?> <input type="button" class="button" onclick="javascript:window.print();" value="打印"><?php endif;?>    </div>   </td>
    </tr>
</table>  
               
</div>
</body>
</html>